package cn.tedu._05mvcboot04.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@Slf4j
public class UserArticleDTO {
    @NotBlank(message = "标题不能为空")
    @Size(min=1,max = 20,message = "标题必须为1-20之间")
    @ApiModelProperty(value = "文章标题",required = true,example = "***")
    private String title;
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "内容")
    @Size(min = 10,max = 200,message = "内容必须为10-200之间")
    private String content;

}
